<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员登录</title>
    <!--外观-->
    <link rel="stylesheet" th:href="@{/admin/css/adminlte.min.css}">
    <!--字体图标-->
    <link rel="stylesheet" th:href="@{/admin/css/all.css}">
    <!--style-->
    <style>
        .login-logo {
            color: #007bff;
        }

        .sign-up {
            text-align: center;
            margin-top: 30px;
        }

        .login-card-body {
            border-radius: 50px;
        }
    </style>
</head>

<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">
        <b>管 理 员 系 统</b>
    </div>
    <!-- /.login-logo -->
    <div class="card">
        <div class="card-body login-card-body">
            <p class="login-box-msg" th:text="${errorMsg}?:'欢 迎 您 ， 请 登 录！'"
               th:style="${errorMsg}? 'color:#ff0000':''">
            </p>

            <form th:action="@{/admin/login}" method="post">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" placeholder="账号" name="loginId" required="required">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-id-badge"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input type="password" class="form-control" placeholder="密码" name="loginPassword" required="required">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-6">
                        <input type="text" class="form-control" name="verifyCode" placeholder="请输入验证码"
                               required="required">
                    </div>
                    <div class="col-6">
                        <img alt="单击图片刷新！" class="pointer" th:src="@{/common/captcha}"
                             onclick="this.src='/common/captcha?d='+new Date()*1">
                    </div>
                </div>
                <div class="sign-up">
                    <button type="submit" class="btn btn-primary btn-block">登 录</button>
                </div>
            </form>
        </div>
        <!-- /.login-card-body -->
    </div>
</div>
</body>
</html>